﻿using System;
using System.ComponentModel.DataAnnotations;

namespace iTravel.Data
{
    [Table("Flight", Schema = "dbo")]
    public class Flight
    {
        public Flight()
        {
            Start = DateTime.Now;
            End = DateTime.Now;
        }

        [Key]
        public int Id { get; set; }

        [Required]
        public DateTime Start { get; set; }
        [Required]
        public DateTime End { get; set; }
        [Required]
        public string Number { get; set; }
    }
}